package Events.gui;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import java.awt.Color;
import javax.swing.JButton;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.SwingConstants;


public class setupPlayerMain extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JPanel contentPane;
	private JTextField txtenterName;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					setupPlayerMain frame = new setupPlayerMain();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public setupPlayerMain() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 550, 400);
		
		JMenuBar menuBar = new JMenuBar();
		setJMenuBar(menuBar);
		
		JMenu mnFile = new JMenu("File");
		menuBar.add(mnFile);
		
		JMenuItem mntmNewGame = new JMenuItem("New Game");
		mnFile.add(mntmNewGame);
		
		JMenuItem mntmExit = new JMenuItem("Exit ");
		mnFile.add(mntmExit);
		
		JMenu mnHelp = new JMenu("Help");
		menuBar.add(mnHelp);
		
		JMenuItem mntmHelpContents = new JMenuItem("Help Contents");
		mnHelp.add(mntmHelpContents);
		
		JMenuItem mntmAboutOrbitalTrail = new JMenuItem("About Orbital Trail");
		mnHelp.add(mntmAboutOrbitalTrail);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblPlayerName = new JLabel("Player Name:");
		lblPlayerName.setHorizontalAlignment(SwingConstants.RIGHT);
		lblPlayerName.setBounds(83, 56, 117, 14);
		contentPane.add(lblPlayerName);
		
		txtenterName = new JTextField();
		txtenterName.setForeground(Color.GRAY);
		txtenterName.setText("[Enter Name]");
		txtenterName.setBounds(210, 53, 226, 20);
		contentPane.add(txtenterName);
		txtenterName.setColumns(10);
		
		JLabel lblPlayerProfession = new JLabel("Player Profession:");
		lblPlayerProfession.setHorizontalAlignment(SwingConstants.RIGHT);
		lblPlayerProfession.setBounds(63, 84, 137, 14);
		contentPane.add(lblPlayerProfession);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setBounds(210, 81, 226, 20);
		contentPane.add(comboBox);
		
		JButton btnCancel = new JButton("Cancel");
		btnCancel.setBounds(285, 282, 89, 23);
		contentPane.add(btnCancel);
		
		JButton btnNext = new JButton("Next");
		btnNext.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent arg0) {
			}
		});
		btnNext.setBounds(172, 282, 89, 23);
		contentPane.add(btnNext);
		
		JLabel lblCreatePlayerAnd = new JLabel("Create Player and Player Profession");
		lblCreatePlayerAnd.setHorizontalAlignment(SwingConstants.CENTER);
		lblCreatePlayerAnd.setBounds(148, 11, 226, 14);
		contentPane.add(lblCreatePlayerAnd);
	}
}
